projects
/
gtk+3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c94993e
)
iconview: Fix a problem with the previous change
author
Matthias Clasen
<mclasen@redhat.com>
Wed, 31 Jan 2018 16:44:26 +0000
(17:44 +0100)
committer
Matthias Clasen
<mclasen@redhat.com>
Wed, 31 Jan 2018 17:37:19 +0000
(18:37 +0100)
After commit
ffef28a7e8d5ffef7de6a3baccb30b0021b6b0ff
,
gtk-icon-browser was spewing critical warnings when
changing sections. Avoid that by respecting the return
value of gtk_tree_model_get_iter.
gtk/gtkiconview.c
patch
|
blob
|
history
diff --git
a/gtk/gtkiconview.c
b/gtk/gtkiconview.c
index 4b364d53c34b55935da51db450972120448c461b..6de96bf09b5c5875f99bcd164f203cb221ff75b6 100644
(file)
--- a/
gtk/gtkiconview.c
+++ b/
gtk/gtkiconview.c
@@
-3510,8
+3510,8
@@
gtk_icon_view_row_deleted (GtkTreeModel *model,
if (gtk_tree_path_get_depth (path) > 1)
return;
- gtk_tree_model_get_iter (model, &iter, path);
- gtk_tree_model_unref_node (model, &iter);
+ if (gtk_tree_model_get_iter (model, &iter, path))
+
gtk_tree_model_unref_node (model, &iter);
index = gtk_tree_path_get_indices(path)[0];